package ae.pcfc.etks.online.itworx.ehs.web.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "T_EHS_FAILURE")
@SequenceGenerator(name = "EHS_FAILURE_ID_SEQ", sequenceName = "EHS_FAILURE_ID_SEQ", initialValue = 1, allocationSize = 1)
public class Failure extends AuditableEntity implements Serializable {

	@Id
	@Column(name = "EHS_FAILURE_ID")
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "EHS_FAILURE_ID_SEQ")
	private long id;
	@Column(name = "REQUEST_ID", nullable = false)
	private Date requestId;
	@Column(name = "OPERATION_NAME", nullable = false)
	private Date operationName;
	@Column(name = "IMS_Log_ID", length = 50)
	private String imsLogId;
	@Column(name = "PAYMENT_ADVICE_NUMBER", length = 50)
	private String paymentAdviceNumber;
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public Date getRequestId() {
		return requestId;
	}
	public void setRequestId(Date requestId) {
		this.requestId = requestId;
	}
	public Date getOperationName() {
		return operationName;
	}
	public void setOperationName(Date operationName) {
		this.operationName = operationName;
	}
	public String getImsLogId() {
		return imsLogId;
	}
	public void setImsLogId(String imsLogId) {
		this.imsLogId = imsLogId;
	}
	public String getPaymentAdviceNumber() {
		return paymentAdviceNumber;
	}
	public void setPaymentAdviceNumber(String paymentAdviceNumber) {
		this.paymentAdviceNumber = paymentAdviceNumber;
	}
}
